package com.goudan.ojcloudserviceclient.fallback;

import com.goudan.ojcloudserviceclient.FeignClient.QuestionFeignClient;
import com.goudan.ojmodel.entity.Question;
import com.goudan.ojmodel.entity.QuestionSubmit;
import org.springframework.stereotype.Component;

@Component
public class QuestionFallBack implements QuestionFeignClient {
    @Override
    public Question getById(Long questionId) {
        return new Question();
    }

    @Override
    public QuestionSubmit getQuestionSubmit(Long questionSubmitId) {
        return new QuestionSubmit();
    }

    @Override
    public boolean updateQuestionSubmitById(QuestionSubmit questionSubmit) {
        return false;
    }
}
